<?php

namespace app\model;

use think\Model;

class UserInfo extends Model
{
    protected $pk = 'id';

    protected $name = 'user_info';

    public $sex = [0=>'男',1=>'女'];

    public function getSexAttr($value)
    {
        return $this->sex[$value];
    }

}
